package edu.xmut.yuepai.client;

import edu.xmut.yuepai.model.form.BlogPublishForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("service-blog")
public interface BlogFeignClient {
    @PostMapping("/blog/publish")
    Long publish(@RequestBody BlogPublishForm blogPublishForm, @RequestParam("ip") String ip);
}
